body { font-family: Arial, sans-serif; margin: 0; padding: 0; } /* Top Section */ .top-section { background-color: red; color: white; padding: 5px; text-align: center; font-size: 1.5rem; } /* Header Section */ .header-section { background-color: red; color: white; text-align: center; padding: 5px; font-size: 1.5rem; font-family: 'Lilita One'; } @media (max-width: 768px) { .header-section { font-size: 1.2em; color: #ffffff; /* Hex code for white */ } } /* Certificate Section */ .certificate-section { text-align: center; padding: 20px; } .certificate-section h1 { margin-bottom: 10px; font-family: 'Lilita One'; } .offer-box { background-color: lightgray; padding: 10px; display: inline-block; margin: 10px 0; } .offer-box span { font-weight: bold; color: red; } .offer-box img { display: block; width: 150px; /* Ensure the image scales below 80% of the container width */ height: 80px; margin: 0 auto; /* Center the image horizontally */ } /* Timer Calendar */ .timer-calendar { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 20px; } .timer-box { background: #f1f1f1; padding: 10px 15px; text-align: center; border: 1px solid #ddd; border-radius: 5px; } .timer-box span { font-size: 1.5rem; font-weight: bold; display: block; } .timer-box label { font-size: 0.9rem; color: #555; } /* What You'll Learn Section */ .learn-heading{ font-family: 'Lilita One'; } .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; width: 100%; padding: 20px; box-sizing: border-box; } @media (max-width: 768px) { .grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Adjust for smaller screens */ } } /* Desktop specific styles */ .card { perspective: 1000px; } .card-inner { position: relative; width: 100%; height: 300px; transition: transform 0.6s; transform-style: preserve-3d; } .card:hover .card-inner { transform: rotateY(180deg); } .card-front, .card-back { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; border-radius: 10px; } .card-front { background-size: cover; background-position: center; } .card-front img { width: 100%; height: 100%; object-fit: cover; /* Ensures the image maintains aspect ratio while filling the card */ } .card-back { background-color: #333; color: #fff; display: flex; flex-direction: column; justify-content: center; align-items: center; transform: rotateY(180deg); text-align: center; padding: 20px; border-radius: 10px; } .card-title { font-size: 1.5rem; margin: 0; } .card-subtitle { font-size: 1rem; margin: 0; margin-top: 10px; } /* CTA Button */ .cta-button { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background-color: blue; color: white; padding: 10px 20px; font-size: 1.2rem; border-radius: 25px; cursor: pointer; animation: blink 2s infinite ease-in-out; } @keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } } @media (min-width: 768px) { .cta-button { left: 10px; transform: none; } } @media (max-width: 768px) { .cta-button { left:80px; transform: none; } } .containers { display: flex; justify-content: center; /* Horizontal center */ align-items: center; /* Vertical center */ height: 100vh; /* Full viewport height */ text-align: center; /* Optional: aligns button text */ } .cta-button { padding: 15px 30px; font-size: 18px; background-color: #4CAF50; /* Customize your color */ color: white; border: none; border-radius: 5px; cursor: pointer; } .cta-button:hover { background-color: #45a049; /* Hover effect */ } /* Footer Section */ .footer { background-color: #333; color: white; text-align: center; padding: 10px; font-size: 0.9rem; } /* Common styles for both banners */ .banner-image { width: 100%; height: 450px; opacity: 1; transition: opacity 0.3s; } /* Default: Show desktop, hide mobile */ .desktop-banner { display: block; } .mobile-banner { display: none; } /* Media query for mobile devices */ @media (max-width: 768px) { .desktop-banner { display: none; } .mobile-banner { display: block; height: 200px; } } /* Define the shake animation */ @keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-5px); } } /* Apply the animation to the target element */ .shake-effect { display: inline-block; /* Ensures proper spacing during animation */ font-size: 1.5rem; animation: shake 0.5s ease-in-out infinite; /* Infinite loop of the shake */ } @media (min-width: 1024px) { .learn.section { width: 80%; /* Reduce width for better layout */ margin-left: auto; /* Equal margin on the left */ margin-right: auto; /* Equal margin on the right */ max-width: 1200px; /* Limit the maximum width */ } .image-container { position: relative; display: inline-block; text-align: center; } .image-container img { width: 100%; height: auto; } @media (max-width: 768px) { .image-container img{ width: 50%; } }